package com.jt.controller;

import com.jt.pojo.Rights;
import com.jt.service.rightsService;
import com.jt.vo.SysResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@CrossOrigin
@RestController
@RequestMapping("/rights")
public class RightsController {
    @Autowired
    private rightsService rightsService;

    @GetMapping("/getRightsList")
    public SysResult getRightsList(){
        List<Rights> list= rightsService.findAll();
        return SysResult.success(list);
    }

}
